package com.ccys.db.mapper;

import com.ccys.db.dto.web.inventory.InventoryFeedDto;
import com.ccys.db.entity.TblInventoryFeed;
import com.ccys.db.vo.web.inventory.InventoryFeedVo;
import com.ccys.db.vo.web.inventory.ProductInfoFeedVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * Created by Mybatis Generator on 2023/12/12
 */
public interface TblInventoryFeedMapper extends Mapper<TblInventoryFeed>, MySqlMapper<TblInventoryFeed> {


    List<InventoryFeedVo> getList(InventoryFeedDto dto);


    ProductInfoFeedVo getProductInfoByBatchNo(String batchNo);

    /**
     * 这个方法是软删除
     * 根据bookingId定位数据，并且type=2并且子查询in product表 查询条件也是bookingId
     *
     * @param bookingId
     */
    void updateDelFlagTrueByBookingAndByTypeTwoAndByProductIdIn(@Param("bookingId") String bookingId);
}